package com.czh.subject.common.entity;

import lombok.Setter;

/**
 * @author caozaihui
 * @version 1.0
 * @description: 分页 TODO tip
 * @since 2024/8/2 下午 5:58
 */
@Setter
public class PageInfo {
    private Integer pageNo;
    private Integer pageSize;

    public Integer getPageNo(){
        if (pageNo==null  || pageNo<1){
            return 1;
        }
        return pageNo;
    }
    public  Integer getPageSize(){
        if (pageSize == null || pageSize < 1){
            return 20;
        }
        return  pageSize;
    }
}
